package cn.xttc.edu.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 杨磊
 * @since 2022-03-11
 */
@Data
@Accessors(chain = true)
@ToString
@TableName("expense_rule")
public class ExpenseRule implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 费用规则id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 对应货车类型
     */
    @TableField("type_id")
    private Integer typeId;

    /**
     * 5公里起步价
     */
    @TableField("start_price")
    private BigDecimal startPrice;

    /**
     * 5-25公里价格
     */
    @TableField("price_in_5_25")
    private BigDecimal priceBetween5And25;

    /**
     * 25-60公里价格
     */
    @TableField("price_in_25_60")
    private BigDecimal priceBetween25And60;

    /**
     * 大于60公里价格
     */
    @TableField("price_gt_60")
    private BigDecimal priceGt60;

    /**
     * 平台抽成率
     */
    @TableField("percentage")
    private Double percentage;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 最近编辑时间
     */
    @TableField("last_edit_time")
    private LocalDateTime lastEditTime;

    /**
     * 操作员id
     */
    @TableField(value = "operator_id", fill = FieldFill.INSERT_UPDATE)
    private Integer operatorId;

}
